package com.huaao.micropolice.core.service.system;

import java.util.Set;

import com.huaao.micropolice.core.common.page.Page;
import com.huaao.micropolice.core.common.page.Sort;
import com.huaao.micropolice.core.model.content.Subject;
import com.huaao.micropolice.core.model.system.Dept;
import com.huaao.micropolice.core.model.system.Role;
import com.huaao.micropolice.core.model.system.User;

public interface RoleService {

	void list(Sort sort, Page page);

	void add(Role role);

	void edit(Role role);

	void dels(String ...ids);

	Role load(String id);

	void bindJobs(String[] jobIds, String id);

	void bindUsers(String id, String[] allUserIds, String[] ckUserIds);

	void bindMenu(String[] ckNodes, String id);

	void bindBtns(String[] ckBtns, String[] allBtnIds, String id);

	Set<String> findPermissions(User user);
	
	Set<Subject> getSubjects();
	
	Set<Dept> getDepts();
}
